#ifndef PROJECT_CMSIS_OVERRIDES_H
#define PROJECT_CMSIS_OVERRIDES_H

#if defined(__GNUC__)
  #ifndef __ASM
    #define __ASM __asm
  #endif
  #ifndef __INLINE
    #define __INLINE inline
  #endif
  #ifndef __STATIC_INLINE
    #define __STATIC_INLINE static inline
  #endif
  #ifndef __NO_RETURN
    #define __NO_RETURN __attribute__((noreturn))
  #endif
  #ifndef __COMPILER_BARRIER
    #define __COMPILER_BARRIER() __ASM volatile ("" ::: "memory")
  #endif
#endif

#endif  // PROJECT_CMSIS_OVERRIDES_H